home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / July 96 / Re Stubs.1 < prev    next >
Encoding:
Internet Message Format  |  1996-07-08  |  1.8 KB  |  [TEXT/ttxt]

  1. Subject:     Re: Stubs
  2. Sent:        7/8/96 3:18 PM
  3. Received:    7/8/96 3:41 PM
  4. From:        Troy Gaul, tgaul@apple.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. >What is a stub (I'm assuming it is a shell lib that simply exports the 
  9. >symbols necessary to link), and how would I create one.
  10.  
  11. Yes, a stub is a shared library containing just the exports.
  12.  
  13. You can create a 'stub' library that is not really a stub by simply 
  14. renaming and changing the file type of your compiled shared library.  I 
  15. say it's "not really a stub" because it actually still contains the code, 
  16. but it will function the same as far as someone linking against it is 
  17. concerned.
  18.  
  19. It is possible to create a true stub library that contains the exports 
  20. and not the code (as is the case for the OpenDoc stub libraries).  It 
  21. would seem natural that there should be a tool available for doing this, 
  22. but I'm not aware of one.
  23.  
  24. >Are the data transfer extensions for the script runner 'official' 
  25. >interfaces for data trasnfer (ie should we always try to subclass these 
  26. >for similar opertions), and if so is there any plan to split these 
  27. >extensions out into a separate shared lib from the script runner?
  28.  
  29. These are not official OpenDoc (or Apple) extensions.  It was simply an 
  30. example of how the extension mechanism could be used to do data transfer.
  31.  
  32. If these were going to be done for real, it would be best to put them 
  33. into a separate shared library.  We decided we should have done that, but 
  34. not in time for the original release of Script Runner.
  35.  
  36. _troy
  37.  
  38. ......................................................................
  39.  Troy Gaul                                            tgaul@apple.com
  40.  Apple Computer, Inc.                               OpenDoc Partsmith
  41.  
  42.  
  43.